package com.lightjet.macross.base.upms.service.impl;

import com.lightjet.macross.base.upms.domain.SystemInfo;
import com.lightjet.macross.base.upms.repository.SystemInfoRepository;
import com.lightjet.macross.base.upms.service.SystemInfoService;
import com.lightjet.macross.common.core.BaseServiceImpl;
import org.springframework.stereotype.Service;

@Service
public class SystemInfoServiceImpl extends BaseServiceImpl<SystemInfo,Integer> implements SystemInfoService {
    @Override
    public SystemInfo FindByShortname(String shortname) {
        return ((SystemInfoRepository)baseRepository).findByShortname(shortname);
    }

    /**
     * Description //根据ID获取组合系统
     * @return com.lightjet.macross.base.upms.domain.SystemInfo
     * CreateTime 2020/3/11 8:37
     * @author lijia
     * @Param id
     */
    @Override
    public SystemInfo FindDistinctById(Integer id) {
        return ((SystemInfoRepository)baseRepository).findDistinctById(id);
    }
}
